<extend name="Layout:layout_base" />
<block name="body_main">
    <div style="clear:both; height:5px;"></div>
    <div class="mdiv" style="height:200px;">
        <AdvertisingContent:list where="advertising_id=7">
            <a href="{$vo.link_url}" class="r_adimg"><img src="{$vo.file_path}" alt="" style="width:1000px;"></a>
            <!--<img src="__THEME__Images/banner/下载中心.jpg" alt="" />-->
        </AdvertisingContent:list>
    </div>
    <div class="nline"></div>
    <div class="mdiv">
        <div id='divtheleftmenu' class='leftmenu1'>
            <p>下载中心<br />DOWNLOADS</p>
            <DocumentCategory:list where='{"pid":31,"status":1}'>
                <div data-id="{$vo.id}"><a href="{:U('Downloads/index','id='.$vo['id'])}">{$vo.title}</a></div>
            </DocumentCategory:list>
            <p>客户服务<br />SERVICES</p>
            <DocumentCategory:tree where='{"pid":36,"status":1}' order="sort,id desc" field="id, title, type_id">
                <div data-id="{$vo.id}" class="onetitle">
                    <if condition="1 eq $vo['type_id']">
                    <a href="{:U('Services/services_info','id='.$vo['id'])}">{$vo.title}</a>
                        <else/>
                    <a href="{:U('Services/index','id='.$vo['id'])}">{$vo.title}</a>
                        </if>
                </div>
                <foreach name="vo['children']" item="vo2">                    
                    <div data-id="{$vo2.id}" class="sectitle"><a href="{:U('Services/index','id='.$vo2['id'])}">{$vo2.title}</a></div>
                </foreach>
            </DocumentCategory:tree>
        </div>
        <div class="float_r" style="width:740px;">
            <div style="height:30px; line-height:30px;border-bottom:2px solid #e9e9e9;">
                <div style="height:100%; border-bottom:2px solid #c62421; padding:0 10px; float:left;">
                    <span style="font-size:16px;font-family:宋体; font-weight:bold; color:#c62421;"><span id="lblPageTitle">{$title}</span></span>
                </div>
                <div class="float_r link_h">您的位置：<a href="/">首页</a> &gt; <a href="{:U('Downloads/index')}">下载中心</a> &gt; <span>{$title}</span></div>
            </div>
            <div style="clear:both; height:20px;"></div>
            <div class="nline"></div>
            <div class="downloads">
                <foreach name="list" item="vo">
                <div class="row"><div class="d_left"><img src="{$vo.picture_url|default='__THEME__Images/icon02.png'}" border="0" /></div>
                    <div class="d_right">
                        <div class="d_top">
                            <b>{$vo.title}</b>&nbsp;&nbsp;&nbsp;<span>{$vo.create_time}</span><br />
                            {$vo.summary}
                        </div>
                        <div class="d_bottom">
                            <a href="{$vo.file_path}"><img src="__THEME__Images/btn_d.gif" data-img-dir="__THEME__Images/" border="0" /></a>
                        </div>
                    </div>
                </div>
                </foreach>
                <!--
                <div class="row"><div class="d_left"><img src="__THEME__Images/icon02.png" border="0" /></div>
                    <div class="d_right"><div class="d_top"><b>汇通伟业实盘客户端（独立版）</b>&nbsp;&nbsp;&nbsp;<span>2015-1-20</span><br />
                        </div><div class="d_bottom"><a href="/Uploads/uppic/download/201501201041222099.rar"><img src="__THEME__Images/btn_d.gif" data-img-dir="__THEME__Images/" border="0" /></a></div></div></div>
                -->
            </div>            
            <div id="pager">
                {$page}
            </div>
        </div>            
    </div>
    <div class="nline"></div>
</block>
<block name="body_after">
    <script type="text/javascript">
        $('.d_bottom a').hover(function () {
            var $img = $(this).find('img');
            $img.attr('src', ($img.attr('data-img-dir') + 'btn_d2.gif'));
        }, function () {
            var $img = $(this).find('img');
            $img.attr('src', ($img.attr('data-img-dir') + 'btn_d.gif'));
        })
    </script>
</block>